package spring.boot.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
@TableName("sys_role_menu")
public class SysRoleMenu {

    @TableId(type = IdType.NONE)
    @TableField("sys_role_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sysRoleId;

    @TableId(type = IdType.NONE)
    @TableField("sys_menu_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sysMenuId;
}
